package csu.web.mypetstore.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * 
 * @TableName category
 */
@TableName(value ="category")
public class Category implements Serializable {

    private String catid;
    private String name;
    private String descn;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    @TableField(exist = false)
    private String image;
    @TableField(exist = false)
    private String description;


    public String getCatid() {
        return catid;
    }
    public void setCatid(String catid) {
        this.catid = catid;
    }
    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }

    /**
     * 
     */
    public String getDescn() {
        return descn;
    }

    /**
     * 
     */
    public void setDescn(String descn) {
        this.descn = descn;
    }
    public String getImage() {

        int index = this.descn.indexOf(">");

        return this.descn.substring(0, index+1);
    }
    public String getDescription() {

        int index = this.descn.indexOf(">");

        return this.descn.substring(index+1);
    }
}